package testDemo.TCPTest;

import java.io.IOException;
import java.net.ServerSocket;

public class ServerDemo {
    public static void main(String[] args) throws IOException {
        //创建服务器
        ServerSocket ss = new ServerSocket(10086);
        //将服务器所监听到的客户端载入线程
        new Thread(new ServerThread(ss.accept())).start();
    }
}
